<template>
  <div>
    <Questionbankvue v-bind="{ changelabel }"></Questionbankvue>
  </div>
</template>
<script setup lang="ts">
import { ref } from "vue";
import Studycodemodel from "../../../mysql_interface/studycodemodel";
import Userqustion from "../Question/userquestion.vue";
import Questionbankvue from "./questionbank.vue";

type D = {
  activeName: string;
  questionlist: Studycodemodel.Iuserquestion[];
};
const activeName = ref('详情')

const questionlist = ref<Studycodemodel.Iuserquestion[]>([])

function changelabel(list: Studycodemodel.Iquestionbank) {
  if (list.userquestion) {
    questionlist.value = list.userquestion || []
  }
  activeName.value = "答题记录";
}
</script>
